<include file="common:__head__"/>
    <div class="permissions-tabs">
        <a class="role tabs-bg" href="{:U('Good/batch_upload')}">商品导入</a>
        <a class="role" href="{:U('Good/good_imgs')}">相册导入</a>
    </div>
    <div class="banx-b">
    	<div class="b-1">

    	<form action="{:U('Good/batch_upload')}" method="post" class="form-horizontal" id="category_form" enctype="multipart/form-data">
    		<div class="left-dr">
    			<div class="left-1">
    				<p class="left-p">
    					<img src="./Public/seller/images/head_06.png">&nbsp;&nbsp;操作提示
    				</p>
    				<ul>
    					<li><p>注：是否推荐、热卖、包邮、上架4个字段,“是”请填“1”，“否”请填“0”。</p></li>
    					<li><p>表格中品牌ID、分类ID 请在下面查看并填入Excel中。</p></li>
    					<li><p>若发现操作错误并且已经提交，请在商品列表编辑后重新提交即可。</p></li>
    				</ul>
    			</div>
    		    <div class="left-2">
    		    	<div class="brand">
    		    	   <strong>品牌【ID】</strong><br/>
                       <volist name="brand" id="vo">
                            <span>{$vo['b_name']}【{$vo['id']}】</span>
                       </volist>
    		    	   <br/>
    		    	   <strong>分类【ID】</strong><br/>
                       <volist name="category" id="v1">
                            <span>{$v1['c_name']}【{$v1['id']}】</span>
                       </volist>
    		    	</div>
    		    </div>

                    <div class="left-3">
                        <div class="add-admin-ipt">
                            <span><i>*</i>商品导入模板:</span>
                            <div class="add-admin-opt">
                                <div class="input-file-show">
                                    <span class="type-file-box">
                                        <input type="text" id="image" name="image" value="" class="type-file-text" readonly>
                                        <input type="button" name="button" id="button1" value="选择上传..." class="type-file-button" >
                                        <input type="file" id="file" name="csv" style="display: none;">
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
    		    <p class="xiao"><a href="{:U('Good/download')}">商品批量上传模板</a></p>
    		    <input type="submit" value="确认提交" class="sub" id="submitBtn"/>
    		</div>
    		</form>
    		<div class="permissions-ri">
                <a href="" class="permissions-help">帮助和服务</a>
            </div>
    	</div>
    </div>
<script type="text/javascript">
    $(function() {
        //弹框选择
        $('#button1').click(function() {
            $('#file').click();
        });

        $('#file').change(function() {
            var file = $('#file').val();
            $('#image').val(file);
        });

        //确认excel
        $('#submitBtn').click(function() {
            $('#category_form').submit();
        });

    });
</script>
<include file="common:__foot__"/>